package cn.dazhou.networkdemo

import android.app.Application
import android.telephony.TelephonyManager
import timber.log.Timber

class App : Application() {

    companion object {
        lateinit var app: App
        val telephonyManager: TelephonyManager by lazy { app.getSystemService(TelephonyManager::class.java) }
    }

    override fun onCreate() {
        super.onCreate()
        Timber.plant(Timber.DebugTree())
        app = this
    }
}